import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        myToken: window.sessionStorage.getItem('myToken')
    },
    mutations: {
        setMyToken(state, token) {
            state.myToken = token
            window.sessionStorage.setItem('myToken', token)
        }
    },
    actions: {},
    modules: {}
})
